package com.mapull.example.section1;

/**
 * StringEndWith
 *
 * @author mapull
 * @date 2021-09-06
 * @since 1.0
 **/
public class StringEndWith {
    public static void main(String[] args) {
        String domain = "www.mapull.com";
        System.out.println( domain.endsWith("com") );  //true
        System.out.println( domain.endsWith("*.com") );  //false
        System.out.println( domain.startsWith("www") );  //true
        System.out.println( domain.endsWith(null) );  //java.lang.NullPointerException
    }
}
